﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace WebLog.Db.Update
{
    internal class update_v2_3 : baseUpdateDatabase
    {
        public update_v2_3()
        {
            this.V = 2.3;
            this.Memo = "添加sql跟踪配置";
        }
        internal override async Task UpdateAction()
        {
            await sqliteHelper.ExecuteNonQueryAsync(@"
                    create table if not exists logPaths(--根据这个表进行记录
                        id integer PRIMARY KEY autoincrement,                -- 设置主键
                        IsAuto BOOLEAN,                -- 是否自动的
                        IsEnable BOOLEAN,                -- 是否启用的
                        Path VARCHAR(100)       
                    );
                ");
        }
    }
}
